//
//  HGTitleCollectionViewCell.m
//  悦享
//
//  Created by dllo on 16/3/18.
//  Copyright © 2016年 张洪国. All rights reserved.
//

#import "HGTitleCollectionViewCell.h"

@implementation HGTitleCollectionViewCell


- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.image1 = [[UIImageView alloc] init];
        _image1.frame = CGRectMake(10, 5, 20, 20);
        [self addSubview:_image1];
        
        self.label1 = [[UILabel alloc] init];
        _label1.frame = CGRectMake(38, 5, self.frame.size.width - 40, 20);
        _label1.font = [UIFont systemFontOfSize:14];
        [self addSubview:_label1];
        
    }
    return self;
}

- (void)setArr:(NSMutableArray *)arr{
    _arr = arr;
    
    TVModel *model = [_arr firstObject];
    
    _image1.image = [UIImage imageNamed:@"iconfont-logo.png"];
    
    _label1.text = model.name;
    
    
}



@end
